<!DOCTYPE HTML>
<html>
 <head>
  <title> New Document </title>
  <meta charset="UTF-8" />
  <meta name="Generator" content="NPP-Plugin">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <script type="text/javascript" src="http://cdn.bootcss.com/jquery/2.1.3/jquery.min.js"></script>
  <style>
	/* 这里是CSS代码 */
	div{background-color:yellow;}
  </style>

 </head>
 <body>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<button class="btn1">用一个 div 包裹所有段落</button>

  <script type="text/javascript">
    $(document).ready(function(){
	  $(".btn1").click(function(){
		$("p").wrapAll("<div></div>");
	  });
	});
  </script>
 </body>
</html>
